/*
 * @Description: 主题theme混入
 * @Author: 无痕
 * @Email: 350801869@qq.com
 * @Date: 2021-02-23 14:35:39
 * @LastEditTime: 2021-03-02 00:02:23
 * @LastEditors: 无痕
 */
import themeState from './themeState';
import { getThemeColor, changeTheme } from './index';

const themeKey = '[S_THEME_DATA]';

const themeMixin = {
  data() {
    return {
      [themeKey]: themeState,
    };
  },
  methods: {
    $sTheme: getThemeColor,
    $sChangeTheme: changeTheme,
  },
};

export default themeMixin;
